package bottle.entity;

import wx.entity.Wxuser;

import java.io.Serializable;
import java.util.Date;

public class Wxbottle implements Serializable {

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Wxuser getWxuser() {
        return wxuser;
    }

    public void setWxuser(Wxuser wxuser) {
        this.wxuser = wxuser;
    }

    private Wxuser wxuser;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column wxbottle.bottleid
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    private Integer bottleid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column wxbottle.bottlebody
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    private String bottlebody;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column wxbottle.bottlecount
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    private Integer bottlecount;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column wxbottle.bottletype
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    private String bottletype;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column wxbottle.bottlecreatetime
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    private Date bottlecreatetime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column wxbottle.open_id
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    private String openid;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table wxbottle
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column wxbottle.bottleid
     *
     * @return the value of wxbottle.bottleid
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    public Integer getBottleid() {
        return bottleid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column wxbottle.bottleid
     *
     * @param bottleid the value for wxbottle.bottleid
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    public void setBottleid(Integer bottleid) {
        this.bottleid = bottleid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column wxbottle.bottlebody
     *
     * @return the value of wxbottle.bottlebody
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    public String getBottlebody() {
        return bottlebody;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column wxbottle.bottlebody
     *
     * @param bottlebody the value for wxbottle.bottlebody
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    public void setBottlebody(String bottlebody) {
        this.bottlebody = bottlebody == null ? null : bottlebody.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column wxbottle.bottlecount
     *
     * @return the value of wxbottle.bottlecount
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    public Integer getBottlecount() {
        return bottlecount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column wxbottle.bottlecount
     *
     * @param bottlecount the value for wxbottle.bottlecount
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    public void setBottlecount(Integer bottlecount) {
        this.bottlecount = bottlecount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column wxbottle.bottletype
     *
     * @return the value of wxbottle.bottletype
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    public String getBottletype() {
        return bottletype;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column wxbottle.bottletype
     *
     * @param bottletype the value for wxbottle.bottletype
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    public void setBottletype(String bottletype) {
        this.bottletype = bottletype == null ? null : bottletype.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column wxbottle.bottlecreatetime
     *
     * @return the value of wxbottle.bottlecreatetime
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    public Date getBottlecreatetime() {
        return bottlecreatetime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column wxbottle.bottlecreatetime
     *
     * @param bottlecreatetime the value for wxbottle.bottlecreatetime
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    public void setBottlecreatetime(Date bottlecreatetime) {
        this.bottlecreatetime = bottlecreatetime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column wxbottle.open_id
     *
     * @return the value of wxbottle.open_id
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    public String getOpenId() {
        return openid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column wxbottle.open_id
     *
     * @param openid the value for wxbottle.open_id
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    public void setOpenId(String openid) {
        this.openid = openid == null ? null : openid.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wxbottle
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bottleid=").append(bottleid);
        sb.append(", bottlebody=").append(bottlebody);
        sb.append(", bottlecount=").append(bottlecount);
        sb.append(", bottletype=").append(bottletype);
        sb.append(", bottlecreatetime=").append(bottlecreatetime);
        sb.append(", openId=").append(openid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wxbottle
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Wxbottle other = (Wxbottle) that;
        return (this.getBottleid() == null ? other.getBottleid() == null : this.getBottleid().equals(other.getBottleid()))
            && (this.getBottlebody() == null ? other.getBottlebody() == null : this.getBottlebody().equals(other.getBottlebody()))
            && (this.getBottlecount() == null ? other.getBottlecount() == null : this.getBottlecount().equals(other.getBottlecount()))
            && (this.getBottletype() == null ? other.getBottletype() == null : this.getBottletype().equals(other.getBottletype()))
            && (this.getBottlecreatetime() == null ? other.getBottlecreatetime() == null : this.getBottlecreatetime().equals(other.getBottlecreatetime()))
            && (this.getOpenId() == null ? other.getOpenId() == null : this.getOpenId().equals(other.getOpenId()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wxbottle
     *
     * @mbg.generated Mon Mar 07 06:12:33 UTC 2022
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBottleid() == null) ? 0 : getBottleid().hashCode());
        result = prime * result + ((getBottlebody() == null) ? 0 : getBottlebody().hashCode());
        result = prime * result + ((getBottlecount() == null) ? 0 : getBottlecount().hashCode());
        result = prime * result + ((getBottletype() == null) ? 0 : getBottletype().hashCode());
        result = prime * result + ((getBottlecreatetime() == null) ? 0 : getBottlecreatetime().hashCode());
        result = prime * result + ((getOpenId() == null) ? 0 : getOpenId().hashCode());
        return result;
    }
}
